import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';

@Component({
  selector: 'app-qgy-protocol-modal',
  templateUrl: './qgy-protocol-modal.component.html',
  styleUrls: ['./qgy-protocol-modal.component.scss']
})
export class QgyProtocolModalComponent implements OnInit {
  @Input('showModal') public isModalShown: boolean = false;
  @Output('modalClose') public modalClose = new EventEmitter();

  constructor() { }

  ngOnInit() {
  }


  public showModal(): void {
    this.isModalShown = true;
  }

  public onHidden(): void {
    this.isModalShown = false;
  }

  goRegister(){
    this.onHidden();
  }
}
